package com.biz.impl;

import java.util.List;

import com.bean.Type;
import com.biz.TypeBiz;
import com.dao.TypeDao;
import com.dao.impl.HibernateUtil;
import com.dao.impl.TypeDaoImpl;

public class TypeBizImpl implements TypeBiz {

	@Override
	public Type get(int id) {
		return (Type) HibernateUtil.get(Type.class, id);
	}

	@Override
	public List<Type> getAll() {
		TypeDao dao = new TypeDaoImpl();
		return dao.getAll();
	}

}
